<?php

namespace App\Enums;

use App\Traits\EnumMethods;

enum BucketType: string
{
    use EnumMethods;

    case STORAGE = 'storage';

    case PLAYER = 'player';

    case RANK = 'rank';

    case STATEMENT = 'statement';

    const TYPE_MAP = [
        self::STORAGE->value => '文件存储',
        self::PLAYER->value => '选手网页',
        self::RANK->value => '排行榜网页',
        self::STATEMENT->value => '数据看板网页',
    ];

    const VERSION_TYPES = [
        self::PLAYER->value => '选手网页',
        self::RANK->value => '排行榜网页',
        self::STATEMENT->value => '数据看板网页',
    ];

    public function toString(): string
    {
        return self::TYPE_MAP[$this->value];
    }
}
